package com.atguigu.gmall.list.feign;

import com.atguigu.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "service-list",path = "/api/search",contextId = "apiSearchFeignClient")
public interface ApiSearchFeignClient {
    /**
     * 搜索商品
     * @return
     */
    @GetMapping
    public Map search(@RequestParam Map<String,Object> searchParams);
}
